<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('智能解析地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::textarea('textarea', '', [])}
        </div>
    </div>

    {if condition="!$is_company"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- {:Form::selectpage('row[admin_id]', null, 'auth/Admin/company', null,null, [])} -->
            <input id="c-admin_id" data-source="auth/Admin/company" class="form-control selectpage form-control"
                   name="row[admin_id]" type="text" value=""/>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"
        >{:__('Trademark_id')}:</label
        >
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-trademark_id"
                    data-rule="required"
                    data-field="title"
                    data-source="order/trademark/index"
                    class="form-control selectpage form-control"
                    name="row[trademark_id]"
                    type="text"
                    value=""
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"
        >{:__('Attribute_id')}:</label
        >
        <div class="col-xs-12 col-sm-8">
            {:Form::cxselect('ajax/attribute',
            ['first','second','category_id','attribute_id'],
            ['first'=>0,'second'=>0,'category_id'=>0,'attribute_id'=>0],['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-quantity"
                    data-rule="required"
                    class="form-control form-control"
                    name="row[quantity]"
                    type="number"
                    value="1"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-name"
                    data-rule="required"
                    class="form-control form-control"
                    name="row[name]"
                    type="text"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-tel"
                    class="form-control form-control"
                    name="row[tel]"
                    type="text"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">位置:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::cxselect('ajax/area', ['province','city','area'], ['province'=>0,
            'city'=>0,'area'=>0])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-address"
                    class="form-control form-control"
                    name="row[address]"
                    type="text"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"
        >{:__('Service_time')}:</label
        >
        <div class="col-xs-12 col-sm-8">
            <input
                    id="c-service_time"
                    class="form-control datetimepicker form-control"
                    data-date-format="YYYY-MM-DD"
                    data-use-current="true"
                    name="row[service_time]"
                    type="text"
                    value="{:date('Y-m-d')}"
            />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::textarea('row[remark]', '', ['id'=>'address'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button
                    type="submit"
                    class="btn btn-success btn-embossed disabled submit"
            >
                {:__('OK')}
            </button>
            <button type="reset" class="btn btn-default btn-embossed">
                {:__('Reset')}
            </button>
        </div>
    </div>
</form>
